package com.audaque.springboot.foshanupload.web.nettydemo.controller;

import cn.hutool.core.util.RandomUtil;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.servlet.ModelAndView;

/**
 * @author zgb
 * @desc ...
 * @date 2023-08-08 20:48:13
 */
@RestController
@RequestMapping("view")
public class ViewController {

    @GetMapping("/index")
    public ModelAndView index() {
        ModelAndView mav = new ModelAndView("index");
        mav.addObject("uid", RandomUtil.randomNumbers(6));
        return mav;
    }

}
